package com.example.rabbitmqdemo.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * @author wuyunbin
 */
@Configuration
public class RabbitConfig {
    @Bean
    public Queue simpleQueue(){
        return new Queue("simple",true);
    }
}
